from django.shortcuts import render

from app0423 import models
from django import forms


class LoginForm(forms.Form):
    username = forms.CharField(
        label ="username",
        widget=forms.TextInput
    )
    password = forms.CharField(
        label ="password",
        widget=forms.PasswordInput
    )


def login(request):
    form = LoginForm()
    return render(request,'login.html',{'form':form})